package com.ehome.poct.backend.api;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class VersonInfoDTO {
    @ApiModelProperty("最低适配软件版本")
    private String minSoftwareVersion;
    @ApiModelProperty("最低适配驱动版本")
    private String minDriverVersion;
    @ApiModelProperty("最低适配系统版本")
    private String minFirmwareVersion;
    @ApiModelProperty("md5")
    private String md5;
    @ApiModelProperty("projectName")
    private String projectName;
    @ApiModelProperty("安装包的类型 增量(incremental)/全量(full)',")
    private String romType;
    @ApiModelProperty("版本")
    private String version;
    @ApiModelProperty("版本Code")
    private String versionCode;
    @ApiModelProperty("主板类型瑞芯微/全志")
    private String deviceMbType;
    @ApiModelProperty("包的ID")
    private String packageId;
    @ApiModelProperty("包的名称")
    private String packageName;
    @ApiModelProperty("安装包url")
    private String url;
    @ApiModelProperty("安装包名称")
    private String fileName;
    @ApiModelProperty("文件大小")
    private Long size;
    @ApiModelProperty("版本类型（1.迭代版本  2.功能版本   3.阶段版本）")
    private Integer versionType;
    @ApiModelProperty("包类型（0. 软件  1.硬件  2.固件）")
    private Integer packageType;
    @ApiModelProperty("设备类型")
    private String deviceType;
    @ApiModelProperty("DateTime")
    private LocalDateTime dateTime;
    @ApiModelProperty("仪器类型版本")
    private String deviceVersionType;
    
    private List<minVersion> softVersions;
    private List<minVersion> driverVersions;
    private List<minVersion> firmVersions;
    
    @Data
    public class minVersion{
        private String id;
        private String versionCode;
        private String version;
    }
    
}
